import os
from PyCmpltrtok.common import get_dir_name_ext
from xlib import func001

DIR, BASE, EXT = get_dir_name_ext(os.path.abspath(__file__))
filename = os.path.join(DIR, f'{BASE}.tmp.log')
# func001('a', filename)
func001('b.do', filename)

from b import do
do()

import logging
for name in ('a', 'b.do', 'stdout', 'stderr'):
    logging.getLogger(name).info(f'An information on {name}.')
    